cmake_minimum_required(VERSION 3.14)

project(face_beauty_demo LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Widgets Multimedia MultimediaWidgets REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Widgets Multimedia MultimediaWidgets REQUIRED)

include_directories(./ ../../src)
aux_source_directory(./ SRC_LIST)

set(THIRD_PARTY_DIR ${CMAKE_SOURCE_DIR}/../../3rdparty/)

link_directories(${CMAKE_SOURCE_DIR}/../../build-src-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug/)

add_executable(${CMAKE_PROJECT_NAME}
    ${SRC_LIST}
)
target_link_libraries(${CMAKE_PROJECT_NAME} Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Widgets
                        Qt${QT_VERSION_MAJOR}::Multimedia Qt${QT_VERSION_MAJOR}::MultimediaWidgets
                        face_beauty
                    )


